<%@ page pageEncoding="UTF-8"
	import="com.zhixiang.xaec.entity.system.FileDetail,com.zhixiang.xaec.service.system.FileDetailService"%>
<%@ page import="com.zhixiang.core.util.AppUtil"%>
<%@ page import="java.util.Properties,java.io.FileInputStream,java.io.InputStreamReader,java.io.Reader,java.io.*" %>
<!-- 
	description : 图片详细信息展示
	author : ljh
	company : www.zhixiang.cn
	datetime : 2012-12-23PM
	 -->
<%
	 String basePath = request.getContextPath();
	request.setAttribute("fileDetail",request.getAttribute("result")); 
%>

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table class="table-info" cellpadding="0" cellspacing="1" width="98%"
	height="95%">
	<tr>
		<td align="center" rowspan="7" style="width: 250px; height: 250px;">
			<img alt="${fileDetail.fileName}" src="<%=basePath%>/file-download.do?fileId=${fileDetail.fileId}" width="240" height="240" align="middle" />
		</td>
		<td>名称：${fileDetail.fileName}</td>
	</tr>
	<tr>
		<td>格式：${fileDetail.ext}</td>
	</tr>
	<tr>
		<td>大小：${fileDetail.fileSize}</td>
	</tr>
	<tr>
		<td>上传时间：<fmt:formatDate value="${fileDetail.createtime}" pattern="yyyy-MM-dd hh:mm:ss"/></td>
	</tr>
	<tr>
		<td>上传者：${fileDetail.creator}</td>
	</tr>
	<tr>
		<td>文件上传模块：${fileDetail.fileType}</td>
	</tr>
	<tr><c:choose>
			<c:when test="${fileDetail.delFlag == 0}">
				<td>操作：
					<img src="<%=request.getContextPath()%>/resources/images/system/download.png" />
					<%-- <a href="<%=request.getContextPath()%>/file-download.do?fileId=${fileDetail.fileId}"
						target="_blank" title="${fileDetail.filePath }">下载</a>&nbsp; --%>
						<a href="<%=request.getContextPath()%>/file-download.do?fileId=${fileDetail.fileId}"
                         >下载</a>&nbsp;
				</td>
			</c:when>
			<c:when test="${fileDetail.delFlag == 1}">
				<td>提示：<font>对不起，该文件已经被删除</font></td>
			</c:when>
		</c:choose>
	</tr>
</table>